package com.tpc.jginterface.task;

import com.tpc.jginterface.service.SalePresService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class SalePresTask {

    @Autowired
    private SalePresService salePresService;

    @Scheduled(cron = "${UPLOAD.SALEPRES}")
    public void uploadSalePres(){
        salePresService.uploadSalePres();
    }
}
